/*
 * LineText.h
 *
 *  Created on: 2012-12-21
 *      Author: yangentao@gmail.com
 */
#pragma once;
#include <string>
#include <vector>

using namespace std;

namespace yet {

class LineParse {
public:
	LineParse();
	LineParse(string text);
	virtual ~LineParse();
public:
	void parse(string text);
	int getLineCount();
	string getLineText(int line);
	string getLineTextFull(int line);
	bool endWithCrLf(int line);
private:
	string s;
	vector<string> arr;
};

} /* namespace yet */
